﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Parties_AddEditCustomer : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    [WebMethod]
    public static void SaveCustomer(Customer Customer)
    {
        using (POSEntities db = new POSEntities())
        {
            Customer.EntryBy = 1;
            Customer.EntryDate = DateTime.Now;
            Customer.BranchId = 1;
            Customer.IsDeleted = false;
            db.Customers.Add(Customer);
            db.SaveChanges();
        }
    }

}